package builder_pattern.type1.builder;

import builder_pattern.type1.Human;

public abstract class HumanBuilder {

    protected Human human = new Human();
    public abstract HumanBuilder buildType();
    public abstract HumanBuilder buildRegion();
    public Human build() {
        //对象复制
        Human target = new Human();
        target.setType(human.getType());
        target.setRegion(human.getRegion());
        return target;
    }

}
